<?php

namespace app\api\validate;

use think\Validate;

class OrderValidate extends Validate
{
    protected $rule = [
        'page' => 'integer',
        'limit' => 'integer',
        'status' => 'integer|in:0,1'
    ];

    protected $message = [
        'page.integer' => '页码格式错误',
        'limit.integer' => '条数格式错误'
    ];

    protected $scene = [
        'getHistoryList' => ['page','limit'],
    ];
}
